import Fastify from 'fastify'
import cors from '@fastify/cors'

const fastify = Fastify({
  logger: true,
})

await fastify.register(cors, {
  // put your options here
  origin: '*',
})

export default fastify
